<template>
	<view class="nucleicAcidTesting">
		<view class="patientName">张三(5345345345345)</view>
		<view class="title">服务项目</view>
		<view class="testingType">
			<view class="name">{{testingType.name}}</view>
			<view class="money">{{testingType.money}}元</view>
		</view>
		<view class="payOrder">
			<view class="totalMoney">总金额:{{testingType.money}}元</view>
			<view class="payNow" @click="payNowOrder">立即支付</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				//核酸检测类型
				testingType:null
			}
		},
		onLoad(options) {
			if(options.type){
				this.testingType = JSON.parse(decodeURIComponent(options.type))
			}
		},
		methods: {
			//选择检测类型
			selectTestingType(item){
				uni.navigateTo({
					url:'/pages/nucleicAcidPay/nucleicAcidPay?type='+item.type
				})
			},
			payNowOrder(){
				uni.navigateTo({
					url:'/pages/nucleicAcidPayStatus/nucleicAcidPayStatus'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
.nucleicAcidTesting{
	background-color: #fff;
	.patientName{
		display: flex;
		align-items: center;
		height: 84rpx;
		background: linear-gradient(90deg, #5088FD 0%, #62B9F9 100%);
		opacity: 0.7;
		font-size: 32rpx;
		font-weight: 400;
		line-height: 44rpx;
		color: #FFFFFF;
		padding: 0 32rpx;
	}
	.title{
		padding: 0 32rpx;
		margin-top: 52rpx;
		font-size: 28rpx;
		font-weight: bold;
		line-height: 40rpx;
		color: #686868;
	}
	.testingType{
		padding: 0 32rpx;
		margin-top: 52rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
		font-size: 36rpx;
		line-height: 50rpx;
		.name{
			color: #000000;
		}
		.money{
			color: #528FFC;
		}
	}
	.payOrder {
		position: absolute;
		bottom: 0;
		width: 100%;
		height: 98rpx;
		display: flex;
		align-items: center;
		background-color: #FFFFFF;
		justify-content: space-between;
	
		.totalMoney {
			color: #5D5C5C;
			font-size: 36rpx;
			margin-left: 32rpx;
			letter-spacing: 2rpx;
		}
	
		.payNow {
			width: 212rpx;
			height: 98rpx;
			color: #FFFFFF;
			font-size: 36rpx;
			display: flex;
			letter-spacing: 2rpx;
			align-items: center;
			justify-content: center;
			background: linear-gradient(90deg, #518CFD 0%, #62B8F9 100%);
		}
	}
}
</style>
